<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a="http://richfaces.org/a4j"
    template="layout/template.xhtml">

    <ui:define name="l_content">
		<ui:include src="/l_content/lc.xhtml" />
    </ui:define>
    
    <ui:define name="body">
    	<h:outputText value="#{userConfirmation.message}" />
    	<s:fragment rendered="#{userConfirmation.confirmAvb}">
	    	<h:form id="psw_form">
	  			<table>
	    			<tr>
		    			<td>
		    				<h:outputText value="#{messages.k_password_msg}" />
		    				<span class="m">*</span>
		    			</td>
		    			<td>
		    				<h:inputSecret value="#{userConfirmation.password}" required="true" />
		    			</td>
		    		</tr>
		    		<tr>
		    			<td>
		    				<h:outputText value="#{messages.confirm_password_msg}" />
		    				<span class="m">*</span>
		    			</td>
		    			<td>
		    				<h:inputSecret value="#{userConfirmation.confirmPassword}" required="true" />
		    			</td>
		    		</tr>
	  			</table>
	 			<br />
	 			<a:commandButton id="save_psw" action="#{userConfirmation.changePassword()}" value="#{messages.CONFIRM_MSG}" reRender="psw_form, messages" >
	 				<s:defaultAction />
	 			</a:commandButton>
	 		</h:form>
    	</s:fragment>
		<a href="#{facesContext.externalContext.requestContextPath}">#{messages.home_msg}</a>
    </ui:define>
</ui:composition>
